\hypertarget{classcontext_free_1_1parser_1_1_l_r0}{\section{context\-Free.\-parser.\-L\-R0 Class Reference}
\label{classcontext_free_1_1parser_1_1_l_r0}\index{context\-Free.\-parser.\-L\-R0@{context\-Free.\-parser.\-L\-R0}}
}


Inheritance diagram for context\-Free.\-parser.\-L\-R0\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{classcontext_free_1_1parser_1_1_l_r0__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for context\-Free.\-parser.\-L\-R0\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classcontext_free_1_1parser_1_1_l_r0_ab87079bb387c26bad40d3678e80eefc9}{abstract void {\bfseries set\-Grammar} (\hyperlink{interfacecontext_free_1_1grammar_1_1_i_grammar}{I\-Grammar} gram)}\label{classcontext_free_1_1parser_1_1_l_r0_ab87079bb387c26bad40d3678e80eefc9}

\item 
\hypertarget{classcontext_free_1_1parser_1_1_l_r0_a1936c0d9c7c80de80a5b3913f8f710b7}{abstract int {\bfseries init} ()  throws Exception}\label{classcontext_free_1_1parser_1_1_l_r0_a1936c0d9c7c80de80a5b3913f8f710b7}

\item 
List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$ \hyperlink{classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22}{chiusura} (List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$ i)
\begin{DoxyCompactList}\small\item\em $\ast$\-I passed a list of production that form the kernel of a state, return closing it \end{DoxyCompactList}\item 
List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$ \hyperlink{classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea}{Go\-To} (List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$ i, String X)
\begin{DoxyCompactList}\small\item\em Passed a state and the symbol that follows the point, returns the kernel of the new state with the relative closure. \end{DoxyCompactList}\item 
List$<$ \hyperlink{classcontext_free_1_1parser_1_1_state}{State} $>$ \hyperlink{classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a}{Item} ()
\begin{DoxyCompactList}\small\item\em given a grammar G we calculate the associated grammar augmented by adding the production S '\-:\-: =. \end{DoxyCompactList}\item 
int \hyperlink{classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca}{uguale} (List$<$ \hyperlink{classcontext_free_1_1parser_1_1_state}{State} $>$ automa, List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$ stato)
\begin{DoxyCompactList}\small\item\em checks if a state is present in an automaton \end{DoxyCompactList}\item 
boolean \hyperlink{classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6}{prod\-Presente} (List$<$ \hyperlink{classcontext_free_1_1parser_1_1_indexed_production}{Indexed\-Production} $>$j, \hyperlink{classcontext_free_1_1grammar_1_1_production}{Production} corrente)
\begin{DoxyCompactList}\small\item\em checks if a production is already in a list of productions. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classcontext_free_1_1parser_1_1_l_r0_aa81cb7c5781fa4b6f1a129077a4da618}{\hyperlink{interfacecontext_free_1_1grammar_1_1_i_grammar}{I\-Grammar} {\bfseries grammatica}}\label{classcontext_free_1_1parser_1_1_l_r0_aa81cb7c5781fa4b6f1a129077a4da618}

\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 13 of file L\-R0.\-java.



\subsection{Member Function Documentation}
\hypertarget{classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22}{\index{context\-Free\-::parser\-::\-L\-R0@{context\-Free\-::parser\-::\-L\-R0}!chiusura@{chiusura}}
\index{chiusura@{chiusura}!contextFree::parser::LR0@{context\-Free\-::parser\-::\-L\-R0}}
\subsubsection[{chiusura}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf Indexed\-Production}$>$ {\bf context\-Free.\-parser.\-L\-R0.\-chiusura} (
\begin{DoxyParamCaption}
\item[{List$<$ {\bf Indexed\-Production} $>$}]{i}
\end{DoxyParamCaption}
)}}\label{classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22}


$\ast$\-I passed a list of production that form the kernel of a state, return closing it 


\begin{DoxyParams}{Parameters}
{\em the} & kernels of the state \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
list of products forming the state 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile 
\end{DoxyAuthor}


Definition at line 27 of file L\-R0.\-java.



Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_icgraph}
\end{center}
\end{figure}


\hypertarget{classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea}{\index{context\-Free\-::parser\-::\-L\-R0@{context\-Free\-::parser\-::\-L\-R0}!Go\-To@{Go\-To}}
\index{Go\-To@{Go\-To}!contextFree::parser::LR0@{context\-Free\-::parser\-::\-L\-R0}}
\subsubsection[{Go\-To}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf Indexed\-Production}$>$ {\bf context\-Free.\-parser.\-L\-R0.\-Go\-To} (
\begin{DoxyParamCaption}
\item[{List$<$ {\bf Indexed\-Production} $>$}]{i, }
\item[{String}]{X}
\end{DoxyParamCaption}
)}}\label{classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea}


Passed a state and the symbol that follows the point, returns the kernel of the new state with the relative closure. 


\begin{DoxyParams}{Parameters}
{\em \hyperlink{classcontext_free_1_1parser_1_1_state}{State}} & which calculated to be the new kernel \\
\hline
{\em X} & symbol that moves the point \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
closure of new state 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile 
\end{DoxyAuthor}


Definition at line 89 of file L\-R0.\-java.



Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_icgraph}
\end{center}
\end{figure}


\hypertarget{classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a}{\index{context\-Free\-::parser\-::\-L\-R0@{context\-Free\-::parser\-::\-L\-R0}!Item@{Item}}
\index{Item@{Item}!contextFree::parser::LR0@{context\-Free\-::parser\-::\-L\-R0}}
\subsubsection[{Item}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf State}$>$ {\bf context\-Free.\-parser.\-L\-R0.\-Item} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a}


given a grammar G we calculate the associated grammar augmented by adding the production S '\-:\-: =. 

S, where S is the assiom. We calculate the closure of it and so associated Go\-To 'to have the finite state autom. \begin{DoxyReturn}{Returns}
the autom L\-R(0) 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile 
\end{DoxyAuthor}


Definition at line 118 of file L\-R0.\-java.



Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_icgraph}
\end{center}
\end{figure}


\hypertarget{classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6}{\index{context\-Free\-::parser\-::\-L\-R0@{context\-Free\-::parser\-::\-L\-R0}!prod\-Presente@{prod\-Presente}}
\index{prod\-Presente@{prod\-Presente}!contextFree::parser::LR0@{context\-Free\-::parser\-::\-L\-R0}}
\subsubsection[{prod\-Presente}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf context\-Free.\-parser.\-L\-R0.\-prod\-Presente} (
\begin{DoxyParamCaption}
\item[{List$<$ {\bf Indexed\-Production} $>$}]{j, }
\item[{{\bf Production}}]{corrente}
\end{DoxyParamCaption}
)}}\label{classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6}


checks if a production is already in a list of productions. 


\begin{DoxyParams}{Parameters}
{\em the} & state in which control \\
\hline
{\em prodaction} & to search \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if there is false if it is not 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile 
\end{DoxyAuthor}


Definition at line 247 of file L\-R0.\-java.



Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_icgraph}
\end{center}
\end{figure}


\hypertarget{classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca}{\index{context\-Free\-::parser\-::\-L\-R0@{context\-Free\-::parser\-::\-L\-R0}!uguale@{uguale}}
\index{uguale@{uguale}!contextFree::parser::LR0@{context\-Free\-::parser\-::\-L\-R0}}
\subsubsection[{uguale}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf context\-Free.\-parser.\-L\-R0.\-uguale} (
\begin{DoxyParamCaption}
\item[{List$<$ {\bf State} $>$}]{automa, }
\item[{List$<$ {\bf Indexed\-Production} $>$}]{stato}
\end{DoxyParamCaption}
)}}\label{classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca}


checks if a state is present in an automaton 


\begin{DoxyParams}{Parameters}
{\em autom} & \\
\hline
{\em state} & to search \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
-\/1 If not present, otherwise returns the number state equal to the past 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile 
\end{DoxyAuthor}


Definition at line 198 of file L\-R0.\-java.



Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_icgraph}
\end{center}
\end{figure}




The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
src/context\-Free/parser/L\-R0.\-java\end{DoxyCompactItemize}
